package com.chinaedu.oc.constant;

/**
 * 常量
 *
 * @Description: TODO
 * @author A18ccms a18ccms_gmail_com
 * @date 2017年5月9日 下午2:19:12
 *
 */
public class Constant {
	/**
	 * 是/成功
	 */
	public static final String YES_1 = "1";
	/**
	 * 否/失败
	 */
	public static final String NO_2 = "2";

	public static final String DATE_FORMAT = "yyyy-MM-dd HH:mm:ss";
	public static final String DATE = "yyyyMMddHHmmss";
	
	public static final int INSERT = 1;
	public static final int UPDATE = 2;

	/**
	 * true
	 */
	public static final boolean TRUE = true;
	/**
	 * false
	 */
	public static final boolean FALSE = false;

	/**
	 * 启用
	 */
	public static final String START_USE_1 = "1";
	/**
	 * 停用
	 */
	public static final String STOP_USE_2 = "2";
	/**
	 * 禁用
	 */
	public static final String FORBID_USE = "3";

	/**
	 * 组织和个人
	 */
	public static final String BUSSNESS_TYPE_A = "3";
	/**
	 * 组织
	 */
	public static final String BUSSNESS_TYPE_B = "2";
	/**
	 * 个人
	 */
	public static final String BUSSNESS_TYPE_C = "1";

	/**
	 * 产品线编码数字长度
	 */
	public static final int PRODUCT_LINE_CODE_LENGTH = 3;


	//////////////////////////////////商品模块
	//商品审核    6：未提交审核     1：已提交审核，未一审   2： 一审通过，未二审  3：二审通过    4：一审 驳回    5: 二审驳回   
	public static final String COMMODITY_REVIEW_STATUS_A = "6";
	public static final String COMMODITY_REVIEW_STATUS_B = "1";
	public static final String COMMODITY_REVIEW_STATUS_C = "2";
	public static final String COMMODITY_REVIEW_STATUS_D = "3";
	public static final String COMMODITY_REVIEW_STATUS_E = "4";
	public static final String COMMODITY_REVIEW_STATUS_F = "5";
	
	
	
	//是否赠送        1： 赠送   2: 否
	public static final int COMMODITY_IS_GIVE_A = 1;
	public static final int COMMODITY_IS_GIVE_B = 2;
	
	//是否可编辑     1： 可编辑    2：不可编辑
	public static final int COMMODITY_IS_EDIT_A = 1;
	public static final int COMMODITY_IS_EDIT_B = 2;
	
	//是否已定价    1：未定价     2:  已定价
	public static final int COMMODITY_IS_PRICE_A = 1;
	public static final int COMMODITY_IS_PRICE_B = 2;
	
	//上架状态    1:未上架     2：可上架     3：可下架
	public static final int COMMODITY_IS_GROUP_A = 1;
	public static final int COMMODITY_IS_GROUP_B = 2;
	public static final int COMMODITY_IS_GROUP_C = 3;
	
	//商品组成      1： 单品    2：组合品
	public static final String COMMODITY_IS_SINGLEPRODUCT_A = "1";
	public static final String COMMODITY_IS_SINGLEPRODUCT_B = "2";
	
	//销售是否有销售期      1： 有     2：无
	public static final int COMMODITY_IS_HAS_SALEDATE_A = 1;
	public static final int COMMODITY_IS_HAS_SALEDATE_B = 2;
	
	//销售状态  1： 已开售      2: 已停售
	public static final Integer COMMODITY_SALESTATUS_A = 1;
	public static final Integer COMMODITY_SALESTATUS_B = 2;
	
	
	//保存时是否提交审核      -1  代表不提交    1代表提价
	public static final int COMMODITY_IS_SUBMITAUDIT_A = -1;
	public static final int COMMODITY_IS_SUBMITAUDIT_B = 1;
	
	
	
	//各种类型
	public static final String SCHOOL_SYSTEM = "school_system";//学制
	public static final String SCHOOL_LEVEL = "school_level";//学段
	public static final String SCHOOL_GRADE = "school_grade";//年级，联动
	public static final String SCHOOL_SPECIALTY = "school_specialty";//学科，联动
	
	public static final String GRADE = "grade";//年级，按照年级id存的
	public static final String SPECIALTY = "specialty";//根据学科id存的

	public static final String AREA_DATA = "area_data";

	public static final String CACHE_CONFIG = "cache_config";//key的配置

	public static final String PRODUCT_LINE = "product_line";//产品线

	public static final String BUSINESS_TYPE = "business_type";//业务类型
	public static final String BILL_TYPE = "bill_type";//支付类型
	public static final String DEPARTMENT = "department";//部门
	public static final String COMMODITY_SORT = "commodity_sort";//商品类型
	public static final String START_USE = "start_use";//启用
	public static final String SALE_STATUS = "sale_status";//
	public static final String PRODUCT_REVIEW_STATUS = "product_review_status";//产品审核状态
	public static final String PRODUCT_TYPE = "product_type";//产品类型
	public static final String UNIT = "unit";
	public static final String SALEDATE = "saledate";

	//商品查询条件下拉框查询全部
	public static final String QUERY_ALL = "-1";
}
